{{ content() }}

{% if news is defined %}
<div class="row-fluid all">
	{% for new in news %}
		<div class="item pull-left lazy">
			<div class="row-fluid">
				<input type="hidden" class="description-link" value='{{ new.description_link }}' />
				{{ link_to('new/hide/' ~ new.id, '', 'class': 'hide-item-link', 'style': 'display: none;') }}
				
				<div class="image pull-left">
					
				</div>
				
				<div class="new pull-left">
					<div class="public-date">
						<small>{{ new.public_date }}</small>
					</div>
					<div class="title">
						<h4><a href='{{ new.link }}' target="_blank">{{ new.title }}</a></h4>
					</div>
					<p class="description-text">
						{{ new.description_text }}
					</p>
					<p>
						<a class="read-more" href='{{ new.link }}' target="_blank"><small><em>đọc thêm</em></small></a>,
						<a href="javascript:void(0)" class="remove"><small><em>ẩn hiển thị</em></small></a>
					</p>
				</div>
			</div>
			
		</div>
	{% endfor %}
</div>
{% endif %}

{% if news is defined %}
<script type="text/javascript">
	var current = '{{ current }}';
	var pollingUrl = '{{ url('poll/index') }}';
</script>
{% endif %}
